<?php 
/**
 * Content - SimpleProductSnapshot
 *
 * @version 1.4.9
 * @package Joomla
 * @subpackage plugins
 * 
 * @author Bruno Pourtier
 * @website http://forge.joomla.org/gf/project/simplesnapshot/
 * @email bruno.pourtier@gmail.com
 * @copyright (C) 2008-2010 Bruno Pourtier
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 *
 * http://www.joomla.org
 *
 * VirtueMart is Free Software.
 * VirtueMart comes with absolute no warranty.
 * http://virtuemart.net
 *
 * Template for usgin with newsletter (as Acajoom, MyMail...)
 * This layout doesn't display the following:
 *  - Add to cart form (quantity, add to cart, attributes)
 *  - Basket link
 *  - Review form
 *
 * To insert MAILING template use the following parameter file=mailing
 * For example: {simpleproduct:id=xx,file=mailing}
 */
if( !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
?>
<div class="sps_product">
	<?php if(!empty($show_product_name)): ?>
		<span class="product_name"><?php echo $product_name; ?></span>
	<?php endif; ?>
	<?php if(!empty($show_product_image)): ?>
		<span class="product_image">
			<a title="<?php echo $product_name; ?>" href="<?php echo $product_link_notsef; ?>">
				<?php echo ps_product::image_tag( $product_thumb_image, 'alt="' . $product_name . '"'); ?>
			</a>
		</span>
	<?php endif; ?>
	<?php if(!empty($show_product_desc)): ?>
		<span class="product_s_desc">
			<?php echo $product_s_desc; ?>
		</span>
	<?php endif; ?>
	<?php if(!empty($show_product_description)): ?>
  <span class="product_description">
    <?php echo $product_description; ?>
  </span>
	<?php endif; ?>
	<?php if(!empty($show_product_price)): ?>		
		<span class="product_price">
			<?php echo $product_price; ?>
		</span>
	<?php endif; ?>
	<?php if(!empty($show_product_unit) && $product_unit): ?>
	<span class="product_unit">
    <?php echo JText::_('SPS_PRODUCTUNIT') . $product_unit; ?>
  </span>
	<?php endif; ?>
	<?php if(!empty($show_link_readmore)): ?>
		<span class="product_link_readmore">
			<a href="<?php echo $product_link_notsef; ?>" title="<?php echo JText::_('SPS_READMORE'); ?>">
				<?php echo JText::_('SPS_READMORE'); ?>
			</a>
		</span>
	<?php endif; ?>
</div>